package com.mike.median.util;

import java.util.ArrayList;

/**
 * 自定义list重写toString方法
 * @param <T>
 */
public class PokerList<T> extends ArrayList<T> {
    @Override
    public String toString() {
        StringBuilder s = new StringBuilder();
        s.append("PokerList{");
        for(T t:this) {
            s.append(t.toString()+" ");
        }
        s.append("}");
        return s.toString();
    }
}
